package com.unisyou.constant;

public enum OperEnum {

    CMCC("中国移动","CMCC"),
    CUCC("中国联通","CUCC"),
    CTCC("中国电信","CTCC");


    private String chinese;
    private String abbreviation;



    OperEnum(String chinese, String abbreviation) {
        this.chinese = chinese;
        this.abbreviation = abbreviation;
    }



    // 普通方法
    public static String getAbbr(String name) {
        for (OperEnum oe : OperEnum.values()) {
            if (oe.getChinese().equals(name)) {
                return oe.abbreviation;
            }
        }
        return null;
    }


    public String getChinese() {
        return chinese;
    }

    public void setChinese(String chinese) {
        this.chinese = chinese;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }
}
